<?php
<object class="Incident_Edit" name="Incident_Edit" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Incident Edit</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">250</property>
  <property name="IsMaster">0</property>
  <property name="Name">Incident_Edit</property>
  <property name="UseAjax">1</property>
  <property name="Width">536</property>
  <property name="OnCreate">Incident_EditCreate</property>
  <object class="Image" name="Image1" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Height">28</property>
    <property name="ImageSource">image/edit_incident2.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image1</property>
    <property name="Top">16</property>
    <property name="Width">536</property>
  </object>
  <object class="Label" name="Label93" >
    <property name="Caption">Start Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">32</property>
    <property name="Name">Label93</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">66</property>
    <property name="Width">61</property>
  </object>
  <object class="Label" name="Label85" >
    <property name="Caption">End Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">269</property>
    <property name="Name">Label85</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">66</property>
    <property name="Width">56</property>
  </object>
  <object class="Label" name="Label86" >
    <property name="Caption">Trouble:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">15</property>
    <property name="Name">Label86</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">210</property>
    <property name="Visible">0</property>
    <property name="Width">48</property>
  </object>
  <object class="DateTimePicker" name="dpStart" >
    <property name="Caption">dpStDate</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">98</property>
    <property name="Name">dpStart</property>
    <property name="ParentFont">0</property>
    <property name="ShowsTime">0</property>
    <property name="Top">62</property>
    <property name="Width">150</property>
  </object>
  <object class="DateTimePicker" name="dpEnd" >
    <property name="Caption">dpEnd</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">330</property>
    <property name="Name">dpEnd</property>
    <property name="ParentFont">0</property>
    <property name="ShowsTime">0</property>
    <property name="Top">62</property>
    <property name="Width">150</property>
  </object>
  <object class="ComboBox" name="cmbTrouble" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">68</property>
    <property name="Name">cmbTrouble</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">206</property>
    <property name="Visible">0</property>
    <property name="Width">150</property>
    <property name="jsOnChange">cmbTroubleJSChange</property>
  </object>
  <object class="Label" name="Label1" >
    <property name="Caption">Remedy:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">243</property>
    <property name="Name">Label1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">210</property>
    <property name="Visible">0</property>
    <property name="Width">49</property>
  </object>
  <object class="ComboBox" name="cmbRemedy" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">300</property>
    <property name="Name">cmbRemedy</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">206</property>
    <property name="Visible">0</property>
    <property name="Width">150</property>
  </object>
  <object class="ComboBox" name="cmbServicedBy" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">380</property>
    <property name="Name">cmbServicedBy</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">205</property>
    <property name="Visible">0</property>
    <property name="Width">150</property>
  </object>
  <object class="Button" name="btnCancel" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">105</property>
    <property name="Name">btnCancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">181</property>
    <property name="Width">75</property>
    <property name="jsOnClick">btnCancelJSClick</property>
  </object>
  <object class="Button" name="btnUpdate" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Update</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">23</property>
    <property name="Name">btnUpdate</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">181</property>
    <property name="Width">75</property>
    <property name="OnClick">btnUpdateClick</property>
  </object>
  <object class="HiddenField" name="hiddenId" >
    <property name="Height">18</property>
    <property name="Left">141</property>
    <property name="Name">hiddenId</property>
    <property name="Top">21</property>
    <property name="Width">100</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript1" >
    <property name="Code"><![CDATA[var xmlhttp
function troubleRemedy()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{  
alert (&quot;Your browser does not support AJAX!&quot;);  
return;  
}
var trouble = document.getElementById('cmbTrouble').value;
var url=&quot;troubleRemedy.php&quot;;
url=url+&quot;?trouble=&quot;+trouble;
xmlhttp.onreadystatechange=stateChangedMake;
xmlhttp.open(&quot;GET&quot;,url,true);
xmlhttp.send(null);
}
function stateChangedMake()
{
if (xmlhttp.readyState==4)  
{  
var my_array = eval(xmlhttp.responseText);  
var cmbObj = document.getElementById('cmbRemedy')  
cmbObj.length = 0;  
for(var val in my_array)  
{    
var val_type = my_array[val];    
var x = document.createElement('option');    
if(val_type.length&gt;1)    
{    
x.text = val_type;    
x.value = val_type;    
try    
{    
cmbObj.add(x,null); 
// standards compliant    
}    
catch(ex)    
{    
cmbObj.add(x); // IE only    
}    
}  
}  
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)  
{  
return new XMLHttpRequest();  
}
if (window.ActiveXObject)  
{  
return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);  
}
return null;
}]]></property>
    <property name="Height">20</property>
    <property name="Left">221</property>
    <property name="Name">JTJavaScript1</property>
    <property name="Top">19</property>
    <property name="Width">180</property>
  </object>
  <object class="Button" name="btnShowType" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add vehicle type/stye</property>
    <property name="Left">218</property>
    <property name="Name">btnShowType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">2</property>
    <property name="Top">206</property>
    <property name="Visible">0</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowTypeJSClick</property>
  </object>
  <object class="Label" name="Label2" >
    <property name="Caption">Serviced by:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">312</property>
    <property name="Name">Label2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">209</property>
    <property name="Visible">0</property>
    <property name="Width">70</property>
  </object>
  <object class="HiddenField" name="compid" >
    <property name="Height">18</property>
    <property name="Left">198</property>
    <property name="Name">compid</property>
    <property name="Width">200</property>
  </object>
  <object class="HiddenField" name="hfDecommission" >
    <property name="Height">18</property>
    <property name="Left">351</property>
    <property name="Name">hfDecommission</property>
    <property name="Top">16</property>
    <property name="Width">100</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript2" >
    <property name="Code"><![CDATA[function AjaxType2(ty,compid)
{ 
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxType('drivetypeajax.php','cmbType',compid);
  AjaxType('drivetypeajax.php','listType',compid);

  }
  }
  var url='adddrivetypeajax.php';
  url=url+&quot;?val=&quot;+ty;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}
]]></property>
    <property name="Height">20</property>
    <property name="Left">255</property>
    <property name="Name">JTJavaScript2</property>
    <property name="Top">20</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript3" >
    <property name="Code"><![CDATA[function AjaxType(urlget,elemidtochange,compid)
{
var httpxml;
try
{
	// Firefox, Opera 8.0+, Safari
	httpxml=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	{
	httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
	}
	catch (e)
	{
	try
	{
	httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
	}
	catch (e)
	{
	alert(&quot;Your browser does not support AJAX!&quot;);
	return false;
	}
	}
	}
	function stateck() 
	{
	if(httpxml.readyState==4)
	{
	var myarray=eval(httpxml.responseText);
	// Before adding new we must remove previously loaded elements
	for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
	{
	document.getElementById(elemidtochange).remove(j);
	}
	for (i=0;i&lt;myarray.length;i++)
	{
	var objDropdown = document.getElementById(elemidtochange);
	var objOption = new Option(myarray[i],myarray[i]);
	objDropdown.options[objDropdown.length] = objOption;
	}
	}
	}
	var url=urlget;
	url=url+&quot;?compider=&quot;+compid;
	httpxml.onreadystatechange=stateck;
	httpxml.open(&quot;GET&quot;,url,true);
	httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">279</property>
    <property name="Name">JTJavaScript3</property>
    <property name="Top">21</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript4" >
    <property name="Code"><![CDATA[function AjaxType3(ty,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxType('drivetypeajax.php','cmbType',compid);
  AjaxType('drivetypeajax.php','listType',compid);
  }
  }
  var url='deldrivetypeajax.php';
  url=url+&quot;?val=&quot;+ty;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">303</property>
    <property name="Name">JTJavaScript4</property>
    <property name="Top">21</property>
    <property name="Width">180</property>
  </object>
  <object class="Label" name="lblJob" >
    <property name="Caption">Incident Type:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Layer">Employment</property>
    <property name="Left">14</property>
    <property name="Name">lblJob</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">95</property>
    <property name="Width">84</property>
  </object>
  <object class="ComboBox" name="cmbType" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Layer"></property>
    <property name="Left">98</property>
    <property name="Name">cmbType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">2</property>
    <property name="Top">92</property>
    <property name="Width">360</property>
  </object>
  <object class="Button" name="Button1" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add type</property>
    <property name="Left">460</property>
    <property name="Name">Button1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">3</property>
    <property name="Top">92</property>
    <property name="Width">20</property>
    <property name="jsOnClick">Button1JSClick</property>
  </object>
  <object class="Label" name="lblMobile" >
    <property name="Caption">Description:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">17</property>
    <property name="Layer">General</property>
    <property name="Left">27</property>
    <property name="Name">lblMobile</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">124</property>
    <property name="Width">69</property>
  </object>
  <object class="Memo" name="memoDesc" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">33</property>
    <property name="Left">98</property>
    <property name="Lines">a:0:{}</property>
    <property name="Name">memoDesc</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">124</property>
    <property name="Width">382</property>
  </object>
  <object class="JTDivWindow" name="JTDivType" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Incident Type</property>
    <property name="Height">179</property>
    <property name="Left">115</property>
    <property name="Name">JTDivType</property>
    <property name="Position">poDefaultPosOnly</property>
    <property name="SiteTheme"></property>
    <property name="Top">50</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox1" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">133</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox1</property>
      <property name="SiteTheme"></property>
      <property name="Top">32</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">85</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">43</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnDelType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">103</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelTypeJSClick</property>
      </object>
      <object class="Button" name="btnAddType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnAddType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddTypeJSClick</property>
      </object>
    </object>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">479</property>
        <property name="Top">17</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
